package com.travel.entity;

import org.springframework.stereotype.Component;
import java.util.Date;
@Component
public class TOrder   {
  private int orderId;
  private Date orderTime;
  private Date orderDate;
  private String orderStatus;
  private double orderPrice;
  private TAttractions attractions;

  public TOrder(int orderId, Date orderTime, Date orderDate, String orderStatus, double orderPrice, TAttractions attractions) {
    this.orderId = orderId;
    this.orderTime = orderTime;
    this.orderDate = orderDate;
    this.orderStatus = orderStatus;
    this.orderPrice = orderPrice;
    this.attractions = attractions;
  }

  public int getOrderId() {
    return orderId;
  }

  public void setOrderId(int orderId) {
    this.orderId = orderId;
  }

  public Date getOrderTime() {
    return orderTime;
  }

  public void setOrderTime(Date orderTime) {
    this.orderTime = orderTime;
  }

  public Date getOrderDate() {
    return orderDate;
  }

  public void setOrderDate(Date orderDate) {
    this.orderDate = orderDate;
  }

  public String getOrderStatus() {
    return orderStatus;
  }

  public void setOrderStatus(String orderStatus) {
    this.orderStatus = orderStatus;
  }

  public double getOrderPrice() {
    return orderPrice;
  }

  public void setOrderPrice(double orderPrice) {
    this.orderPrice = orderPrice;
  }

  public TAttractions getAttractions() {
    return attractions;
  }

  public void setAttractions(TAttractions attractions) {
    this.attractions = attractions;
  }

  public TOrder() {
  }

  @Override
  public String toString() {
    return "TOrder{" +
            "orderId=" + orderId +
            ", orderTime=" + orderTime +
            ", orderDate=" + orderDate +
            ", orderStatus='" + orderStatus + '\'' +
            ", orderPrice=" + orderPrice +
            ", attractions=" + attractions +
            '}';
  }
}
